#ifndef PLAYERWINDOW_H
#define PLAYERWINDOW_H

#include <QtGui>
#ifdef WIN32
#include <QAxWidget>
#endif
#include <QFrame>
#include <QMessageBox>
#include <QWidget>
#include "displaywindow.h"
#include "main_topodll_global.h"




class TOPODLLSHARED_EXPORT DemoWidget : public QWidget// , public IPluginWidget
{
    Q_OBJECT

public:
    DemoWidget(bool isEditMode, std::vector<void *> ptr_vect, QWidget *parent = 0);
    ~DemoWidget();
    void Release();
    QString GetObjName()
    {
        return "DemoWidget";
    }


    void SetMsgShmHandle(char *msgshm_ptr) {}

    //  bool Read(CGStream& ios);
    //  bool Write(CGStream& ios);

    void SetProperty(QString &property_name, QVariant value);
    void GetProperty(std::list<std::pair<QString, QVariant> > &property_list);
    void EmitItemAction(int id, QString action);

protected:

public slots:
    void TreeClick(int gid);

signals:
    void itemAction(int id, QString action);
private:
    QGridLayout *m_layoutMain;
    MainWindow1 *m_mainwindows;
};

#endif
